/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bhims;

import com.gargoylesoftware.htmlunit.WebClient;
import java.util.ArrayList;
import javax.swing.JFrame;
import javax.swing.UIManager;

/**
 *
 * @author Rein
 */
public class BHIMS {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        try {

            UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
            MainFrame mf = new MainFrame();
            mf.setExtendedState(mf.getExtendedState() | JFrame.MAXIMIZED_BOTH);
            mf.setVisible(true);
        } catch (Exception e) {
            // handle exception
        }
        //TestOnly();

    }

    private static void TestOnly() {
        CommonFunctions cf = new CommonFunctions();
        TwitterFunctions tf = new TwitterFunctions();

        WebClient wc = cf.initialiazeWebClient();
        String accountString = "KevinOshea3:tsongkie14";
        boolean success = tf.TwitterLogIn(wc, accountString);
        System.out.print(success);
        if (success) {
            boolean followed;
            followed = tf.UnFollowUser(wc, "breakingnews_90");
            System.out.println(followed);
        }
    }
}
